/**
 * ES5:__protp__  
 * ES6: Object.getPrototypeOf()
 */

let str = "str"
let num = 0
let object = {
  name: 'mike',
  age: '19',
}
let arr = [1, 2, 3, 5 ,8 ,6 ,0 ,9 ]

// console.log(Object.getPrototypeOf(str) === (str.__proto__));  //true

// let strPrototype = Object.getPrototypeOf(str)
// let strIterator = strPrototype[Symbol.iterator]()

// let strPrototype = str[Symbol.iterator]()
// console.log(strPrototype.next());
// console.log(strPrototype.next());
// console.log(strPrototype.next());
// console.log(strPrototype.next());
// console.log(strPrototype.next());
// console.log(str[Symbol.iterator]().next());


let arrPrototype = Object.getPrototypeOf(arr)
let iterator = arr[Symbol.iterator]()
console.log(iterator.next());
console.log(iterator.next());
console.log(iterator.next());
console.log(iterator.next());
console.log(iterator.next());
console.log(iterator.next());
console.log(iterator.next());
console.log(iterator.next());


